/**
 * User: Obi
 * Date: 02.08.11
 * Time: 20:46
 */
package com.jediflasher.game_client.events.model {
import flash.events.Event;

public class WorldDataEvent extends Event {

	public static const CHARACTER_ADDED:String = "characterAdded";
	public static const CHARACTER_REMOVED:String = "characterRemoved";

	public function WorldDataEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false) {
		super(type, bubbles, cancelable);
		this._data = data;
	}

	/**
	 * @private
	 */
	private var _data:Object;

	public function get data():Object {return this._data;}

	override public function clone():Event {
		return new WorldDataEvent(type, data, bubbles, cancelable);
	}
}
}
